package com.example.benwhite.smartboot;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Button weightTest =(Button)findViewById(R.id.weightTest);
        Button distanceTest = (Button)findViewById(R.id.distanceTest);
        Button safeLock = (Button)findViewById(R.id.safeLock);
        weightTest.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MainActivity.this, WeightActivity.class);
                startActivity(intent);
            }
        });
        distanceTest.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MainActivity.this, DistanceActivity.class);
                startActivity(intent);
            }
        });
        safeLock.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MainActivity.this, SafeLockActivity.class);
                startActivity(intent);
            }
        });

    }

}
